pbootcms 面包屑 英文 首页换文字 默认的中文如何替换成英文
时间 :
2022-11-23
编辑 :创始人
pbootcms 面包屑 英文 首页换文字 默认的中文如何替换成英文
该系统的标签{pboot:position}是面包屑标签。
可以通过修改参数修改部分的内容,如:{pboot:position indextext='Home'}。
操作:通过查询 “parserPositionLabel” 或者 “// CMS当前位置标签解析” 找到对应的代码,将中文修改成英文或其他语言文字
首页:
路径:/apps/home/controller/IndexController.php
代码大约在224行。
1 | $content = $this->parser->parserPositionLabel($content, - 1, '首页', SITE_INDEX_DIR . '/'); // CMS当前位置标签解析 |
搜索:
路径:/apps/home/controller/SearchController.php
代码大约在39行。
1 | $content = $this->parser->parserPositionLabel($content, 0, '搜索', Url::home('search')); // CMS当前位置标签解析 |
我的评论:
路径:/apps/home/controller/CommentController.php
代码大约在124行。
1 | $content = $this->parser->parserPositionLabel($content, 0, '我的评论', Url::home('comment/my')); // CMS当前位置标签解析 |
会员中心,登录,注册,资料修改:
路径:/apps/home/controller/MemberController.php
代码大约在102,254,273,382行。
1 2 3 4 5 6 7 | $content = $this->parser->parserPositionLabel($content, 0, '会员登录', Url::home('member/login')); // CMS当前位置标签解析$content = $this->parser->parserPositionLabel($content, 0, '会员注册', Url::home('member/register')); // CMS当前位置标签解析$content = $this->parser->parserPositionLabel($content, 0, '个人中心', Url::home('member/ucenter')); // CMS当前位置标签解析$content = $this->parser->parserPositionLabel($content, 0, '资料修改', Url::home('member/umodify')); // CMS当前位置标签解析 |
